package rock.negagame.client.sprites.control;


import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.AbsolutePanel;

public class Pantalla extends AbsolutePanel{

	public static int h = 700;
	public static int w = 600;
	
	static Pantalla pantalla=null;
	
	private Pantalla(){		
		super();
		this.setSize(w+"px", h+"px");
		
		this.setStyleName("pantalla");
		DOM.setStyleAttribute(this.getElement(), "backgroundColor", "#9F5831");
		DOM.setStyleAttribute(this.getElement(), "margin", "auto");
	}
	
	public static Pantalla getPantalla(){
		if(pantalla==null)	pantalla = new Pantalla();
		return pantalla;
	}
	
}
